import React from 'react';
import { Typography } from 'antd';
const { Text } = Typography;
import style from './index.module.css';
interface Iprop {
    content: string;
    icon: string;
    required?: Boolean;
}

export default (props: Iprop) => {
    return (
        <div>
            <svg className="icon" aria-hidden="true">
                <use xlinkHref={props.icon} />
            </svg>
            <span
                style={{ paddingLeft: '0.3rem' }}
                className={props.required ? style.required : ''}
            >
                {props.content}
            </span>
        </div>
    );
};
